package com.csun.cmny.provider.dto;

import com.csun.cmny.provider.validator.OmcAdvisoryCancelAddValidator;
import com.csun.cmny.provider.validator.OmcAdvisoryCancelEditValidator;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
public class AdvisoryCancelDto implements Serializable {

    private static final long serialVersionUID = 3874172055245103265L;

    /*
    * id
    * */
    @NotNull(message = "{advisoryCancel.id.null}",
            groups = {OmcAdvisoryCancelEditValidator.class})
    private Long id;

    /**
     * 咨询记录ID
     */
    private Integer advisoryId;

    /**
     * 老人姓名
     */
    @NotNull(message = "{advisoryCancel.oldName.null}",
            groups = {OmcAdvisoryCancelAddValidator.class})
    @NotEmpty(message = "{advisoryCancel.oldName.null}",
            groups = {OmcAdvisoryCancelAddValidator.class})
    private String oldName;

    /**
     * 取消预约原因
     */
    @NotNull(message = "{advisoryCancel.cancelReason.null}",
            groups = {OmcAdvisoryCancelAddValidator.class})
    @NotEmpty(message = "{advisoryCancel.cancelReason.null}",
            groups = {OmcAdvisoryCancelAddValidator.class})
    private String cancelReason;

    /**
     * 备注
     */
    private String remark;

    /**
     * 房间ID
     */
    private Integer roomId;

    /**
     * 床位ID
     */
    @NotNull(message = "{advisoryCancel.bedId.null}",
            groups = {OmcAdvisoryCancelAddValidator.class})
    private Integer bedId;

    /**
     * 取消日期
     */
    private Date cancelTime;

    /**
     * 组织Id
     */
    private Long groupId;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 创建人ID
     */
    private Long creatorId;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 最近操作人
     */
    private String lastOperator;

    /**
     * 最后操作人ID
     */
    private Long lastOperatorId;

    /**
     * 更新时间
     */
    private Date updateTime;
}
